#ifndef		__XMLPARSER_HPP__
# define	__XMLPARSER_HPP__
# include	<string>

class		XmlParser
{
public:
	XmlParser();
	~XmlParser();


	/*
	-- Method
	*/
	void		consumeHeaderHttp();
	int			consumeBlanks(int &pos);
	int			consumeBlanks(std::string & str, int &pos);
	void			setText(const std::string &);

	const std::string		consumeNextTag();
	const std::string		findNextTag();
	const std::string		getCompleteLine();
	const std::string		getTag(std::string & completeLine);
	const std::string		getBody(std::string	& completeLine);

private:
	int				_pos;
	std::string		_text;
};


#endif		/* __XMLPARSER_HPP__ */